#include <Arduino.h>
#include <U8x8lib.h>
#define _int uint8_t

U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(U8X8_PIN_NONE);
void setup(){
  u8x8.begin();
  u8x8.setFlipMode(1);
}

_int tile1[16] = {0x80, 0x80, 0x80, 0x80, 0x00, 0x80, 0xe0, 
     0xfe, 0xff, 0xff, 0xff, 0x80, 0x80, 0x80, 0x80, 0x80};
_int tile2[16] = {0xff, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff,
     0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x1f, 0x0f};
void paint(_int x, _int y){
  u8x8.drawTile(x, y    , 2, tile1);
  u8x8.drawTile(x, y + 1, 2, tile2);
}
void loop(){
  for (int i = 0; i <= 16; i += 2)
    for (int j = 0; j <= 6; j += 2)
      paint(i, j);
}
